import  styled from 'styled-components'

export const HomeWrapper = styled.div`
    margin: 0 auto;
    width: 960px;
    height: 100px;
`;
export const HomeLeft = styled.div`
    float: left;
    width: 625px;
    margin-top: 30px;
    .banner-img {
        width: 625px;
        height: 270px;
        border-radius: 5px;
    }
`;
export const HomeRight = styled.div`
    float: right;
    width: 280px;
`;

export const ListWrapper = styled.div`
    overflow: hidden;
    padding: 20px 0;
    border-bottom: 1px solid #dcdcdc;
    .pic {
        display: block;
        width: 125px;
        height: 100px;
        float: right;
    }
`;
export const ListInfo = styled.div`
    width: 500px;
    float: left;
    .title {
        font-size: 27px;
        font-weight: bold;
        font-size: 18px;
        color: #333;
    }
    .desc {
        font-size: 13px;
        color: #999;
        padding: 10px 0;
    }
`;

export const RecommandWrapp = styled.div`
    margin: 30px 0;
    width: 280px;
`;
export const RecommandItem = styled.div`
    height: 50px;
    width: 280px;
    margin-bottom: 8px;
    background: url(${(props) => props.imgUrl});
    background-size: contain;
`;

export const WriterWrapper = styled.div`
    margin: 30px 0;
    width: 280px;
`;
//加载更多按钮
export const LoadMore = styled.button`
    width: 100%;
    height: 40px;
    margin: 30px auto 60px;
    padding: 10px 15px;
    text-align: center;
    font-size: 15px;
    color: #fff;
    outline: none;
    border: none;
    border-radius: 20px;
    background-color: #a5a5a5;
    cursor: pointer;  
`;

//回到顶部 BackTop
export const BackTop = styled.div`
    position: fixed;
    right: 40px;
    bottom: 10px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border: 1px solid #ccc;
    .iconfont {
        font-size: 25px;
        line-height: 50px;
        margin-left: 14px;
    }
`;